﻿using UnityEngine;
using System.Collections;

public class EmoticonChatWindow : LTEventListenerC {
	public GameObject[] selecetedMarks;

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	int _prevIndex = -1;
	int _selectedIndex = -1;
	public override void OnEvent (int eventID)
	{
        //base.OnEvent (eventID);
        //if( _prevIndex > -1 )
        //    selecetedMarks[_prevIndex].SetActive(false);
        //_prevIndex = eventID;
		_selectedIndex = eventID;
		//selecetedMarks[eventID].SetActive(true);

        OnClickedSelectButton();
	}

	void OnClickedSelectButton()
	{
		CSceneManager.manager.SendEmoticonChat(_selectedIndex+1);
		//UIManager.Instance.HideEmoticomWindow();
        UIManager.Instance.OnClickedEmoticonChatButton();
	}
}
